diff options
| author | Adam Soltys <[email protected]> | 2024-09-25 12:50:46 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2024-09-25 12:50:46 -0700 |
| commit | 4209b78957d89f4ed906ac7a16f45aa0b28ab9ba (patch) | |
| tree | 1768a9f0a25c2ee0a847d5ce0174ab3cfcf6ba77 /src/routes/(app)/invoice/[id]/+layout.server.ts | |
| parent | fca8075a58ecf3fdc72576abbe64d62da8e5ee29 (diff) | |
| download | coinos-ui-4209b78957d89f4ed906ac7a16f45aa0b28ab9ba.tar.gz coinos-ui-4209b78957d89f4ed906ac7a16f45aa0b28ab9ba.zip | |
invoice fixes
Diffstat (limited to 'src/routes/(app)/invoice/[id]/+layout.server.ts')
| -rw-r--r-- | src/routes/(app)/invoice/[id]/+layout.server.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/routes/(app)/invoice/[id]/+layout.server.ts b/src/routes/(app)/invoice/[id]/+layout.server.ts index 55c44f36..e2f03fd7 100644 --- a/src/routes/(app)/invoice/[id]/+layout.server.ts +++ b/src/routes/(app)/invoice/[id]/+layout.server.ts @@ -24,6 +24,7 @@ export async function load({ depends, params, url, parent }) { let { amount, pending, received } = invoice; amount = parseInt(amount); + subject = user || invoice.user; let paid = (!amount && (pending || received)) || @@ -34,5 +35,5 @@ export async function load({ depends, params, url, parent }) { } let src = Qr.drawImg(invoice?.text || "", { size: 500 }); - return { id, invoice, subject, src }; + return { id, invoice, subject, src, user }; } |
